﻿using System.ComponentModel;

namespace TaskDialogs.Classes
{
    public class TaskDialogClosingEventArgs : CancelEventArgs
    {
        /// <summary>
        /// 
        /// </summary>
        internal TaskDialogClosingEventArgs(TaskDialogButton closeButton) : base()
        {
            CloseButton = closeButton;
        }

        /// <summary>
        /// Gets the <see cref="TaskDialogButton"/> that is causing the task dialog
        /// to close.
        /// </summary>
        public TaskDialogButton CloseButton
        {
            get;
        }
    }
}